﻿<UserControl xmlns:inputToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"  xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"  xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"  xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"  x:Class="LinqToPiWCFTest.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
  <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Grid.Row="0">
            <TextBlock Text="Tag" Margin="5" VerticalAlignment="Center"/>
            <TextBox x:Name="containsTxt" Width="250" Margin="5" Text="sinusoid"/>
            <TextBlock Text="Start" Margin="5"/>
            <controls:DatePicker x:Name="startDatePicker" Margin="5"/>
            <inputToolkit:TimePicker x:Name="startTimePicker"  Margin="5"/>
            <TextBlock Text="End" VerticalAlignment="Center"/>
            <controls:DatePicker x:Name="endDatePicker" Margin="5"/>
            <inputToolkit:TimePicker x:Name="endTimePicker"  Margin="5"/>
            <Button x:Name="searchBtn" Content="Refresh" Click="searchBtn_Click" Margin="5"/>
        </StackPanel>
      <controls:TabControl x:Name="tabControl" Grid.Row="1">
            <controls:TabItem Header="Data">
                <data:DataGrid x:Name="resultGrid" CellEditEnded="resultGrid_CellEditEnded"/>
            </controls:TabItem>
            <controls:TabItem Header="Graph">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>

                    <StackPanel Orientation="Horizontal">
                        <ComboBox x:Name="chartType" SelectionChanged="chartType_SelectionChanged" Width="400" DisplayMemberPath="{Binding Name}" Margin="5"/>
                    </StackPanel>
                    <chartingToolkit:Chart x:Name="resultChart" Grid.Row="1">

                     
                    </chartingToolkit:Chart>
                </Grid>
           
            </controls:TabItem>
        </controls:TabControl>
        
  </Grid>
</UserControl>
